Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a insert_unique_hashed_nocheck method #452

Closed
wants to merge 1 commit into from

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Aug 17, 2023

This adds a insert_unique_hashed_nocheck method which inserts a key-value pair being given a hash for the key and not checking if the key already exists. It's a more powerful variant of insert_unique_unchecked since it takes a hash value and returns RawOccupiedEntryMut. I found a use for it in rustc's query system.

@Amanieu
Copy link
Member

Amanieu commented Aug 31, 2023

I would like to deprecate the raw entry API in favor of HashTable in #466. Could you have a look at that to see if it addresses your use case better?

@bors
Copy link
Contributor

bors commented Sep 5, 2023

☔ The latest upstream changes (presumably #468) made this pull request unmergeable. Please resolve the merge conflicts.

@Zoxc Zoxc closed this Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants